import request from '@/utils/request'

// 查询供应商开票金额
export function invoicingList(provide) {
  return request({
    url: `/system/invoicing/list?provide=${provide}`,
    method: 'get',
  })
}

// 查询供应商开票明细
export function flowList(query) {
  return request({
    url: `/system/flow/list`,
    method: 'get',
    params:query
  })
}
//供应商开票
export function flowInvoicing(money,company,provide,productGroup,productWare,uuid,remark) {
  return request({
    url: `/system/flow/invoicing?money=${money}&company=${company}&provide=${provide}&productGroup=${productGroup}&productWare=${productWare}&uuid=${uuid}&remark=${remark}`,
    method: 'get',
  })
}
// 查询物资公司开票汇总
export function invoicingList1(query) {
  return request({
    url: `/system/invoicing/list`,
    method: 'get',
    params:query
  })
}


// 物资公司开票清单
export function detailList1(query) {
  return request({
    url: `/system/detail/list`,
    method: 'get',
    params:query
  })
}
// 物资公司开票清单作废
export function invoiceBack(query) {
  return request({
    url: `/system/flow/invoiceBack`,
    method: 'get',
    params:query
  })
}
// 物资公司开票流水
export function detailList(query) {
  return request({
    url: `/system/detail/selectList`,
    method: 'get',
    params:query
  })
}

// 供应商开票验证
export function checkInvoicing(id,uuid) {
  return request({
    url: `/system/flow/checkInvoicing?id=${id}&uuid=${uuid}`,
    method: 'get',
  })
}

// 物资中心查看供应商剩余开票金额
export function listGroupProvideApi(data) {
  return request({
    url: `/system/invoicing/listGroupProvide`,
    method: 'get',
    params: data
  })
}
